package highlighter.ast.impl;

import highlighter.ast.IASTNode;
import highlighter.visitor.IASTVisitor;

public class RelationalExpr implements IASTNode {

	private int relOp;
	private ArithmeticExpr lhs;
	private ArithmeticExpr rhs;

	public RelationalExpr(ArithmeticExpr lhs, int relOp, ArithmeticExpr rhs) {
		this.relOp = relOp;
		this.lhs = lhs;
		this.rhs = rhs;
	}

	public int getRelOp() {
		return relOp;
	}

	public ArithmeticExpr getLhs() {
		return lhs;
	}

	public ArithmeticExpr getRhs() {
		return rhs;
	}

	@Override
	public Object accept(IASTVisitor visitor) {
		return visitor.visit(this);
	}

}
